/*    */ package net.gxf.learn.one;
/*    */ 
/*    */ import org.lwjgl.LWJGLException;
/*    */ import org.lwjgl.opengl.Display;
/*    */ import org.lwjgl.opengl.DisplayMode;
/*    */ import org.lwjgl.opengl.GL11;
/*    */ 
/*    */ public class QuadExample
/*    */ {
/*    */   public void start()
/*    */   {
/*    */     try
/*    */     {
/* 17 */       Display.setDisplayMode(new DisplayMode(500, 500));
/* 18 */       Display.create();
/*    */     } catch (LWJGLException e) {
/* 20 */       e.printStackTrace();
/* 21 */       System.exit(0);
/*    */     }
/*    */ 
/* 25 */     GL11.glMatrixMode(5889);
/* 26 */     GL11.glLoadIdentity();
/* 27 */     GL11.glOrtho(0.0D, 500.0D, 0.0D, 500.0D, 200.0D, -200.0D);
/* 28 */     GL11.glMatrixMode(5888);
/* 29 */     GL11.glClearColor(1.0F, 1.0F, 1.0F, 1.0F);
/*    */ 
/* 32 */     while (!Display.isCloseRequested())
/*    */     {
/* 35 */       GL11.glClear(16640);
/*    */ 
/* 39 */       GL11.glAlphaFunc(514, 1.0F);
/*    */ 
/* 41 */       GL11.glEnable(3042);
/*    */ 
/* 43 */       GL11.glBlendFunc(770, 771);
/*    */ 
/* 47 */       GL11.glBegin(7);
/* 48 */       GL11.glColor4f(1.0F, 0.0F, 0.0F, 1.0F);
/* 49 */       GL11.glVertex3f(100.0F, 100.0F, -100.0F);
/* 50 */       GL11.glVertex3f(300.0F, 100.0F, -100.0F);
/* 51 */       GL11.glVertex3f(300.0F, 300.0F, -100.0F);
/* 52 */       GL11.glVertex3f(100.0F, 300.0F, -100.0F);
/* 53 */       GL11.glEnd();
/* 54 */       GL11.glBlendFunc(770, 1);
/* 55 */       GL11.glBegin(7);
/* 56 */       GL11.glColor4f(0.0F, 1.0F, 0.0F, 1.0F);
/* 57 */       GL11.glVertex3f(80.0F, 80.0F, 100.0F);
/* 58 */       GL11.glVertex3f(280.0F, 80.0F, 100.0F);
/* 59 */       GL11.glVertex3f(280.0F, 280.0F, 100.0F);
/* 60 */       GL11.glVertex3f(80.0F, 280.0F, 100.0F);
/* 61 */       GL11.glEnd();
/*    */ 
/* 82 */       Display.update();
/*    */     }
/*    */ 
/* 85 */     Display.destroy();
/*    */   }
/*    */ 
/*    */   public static void main(String[] argv) {
/* 89 */     QuadExample quadExample = new QuadExample();
/* 90 */     quadExample.start();
/*    */   }
/*    */ }

/* Location:           C:\DBDownload\lwjglDemo2\lwjglDemo2\Run.jar
 * Qualified Name:     com.learn.one.QuadExample
 * JD-Core Version:    0.6.2
 */